Skip to content

Install on macOS arm64 works but .load ./vec0 reports dylib not found error #189

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
nborwankar opened this issue Jan 26, 2025 · 2 comments

Comments

@nborwankar
Copy link

pip install ./sqlite_vec-0.1.6-py3-none-macosx_11_0_arm64.whl --force-reinstall
Processing ./sqlite_vec-0.1.6-py3-none-macosx_11_0_arm64.whl
Installing collected packages: sqlite-vec
Attempting uninstall: sqlite-vec
Found existing installation: sqlite-vec 0.1.6
Uninstalling sqlite-vec-0.1.6:
Successfully uninstalled sqlite-vec-0.1.6
Successfully installed sqlite-vec-0.1.6
sqlite3
SQLite version 3.41.2 2023-03-22 11:56:21
Enter ".help" for usage hints.
Connected to a transient in-memory database.
Use ".open FILENAME" to reopen on a persistent database.
sqlite> .load ./vec0
Error: dlopen(./vec0.dylib, 0x000A): tried: './vec0.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS./vec0.dylib' (no such file), '/Users/nitin/anaconda3/envs/elf/bin/../lib/./vec0.dylib' (no such file), '/Users/nitin/anaconda3/envs/elf/bin/../lib/./vec0.dylib' (no such file), '/usr/lib/./vec0.dyli
sqlite>

MacOS Ventura 13.6.4
M2 Max MacBook Pro

@nborwankar
Copy link
Author

nborwankar commented Jan 26, 2025

However pip install sqlite_vec seems to work and I am able to access sqlite_vec from python as in your web instructions.
I am in a condo env called "elf"
elf) ➜ Projects pip install sqlite-vec
Requirement already satisfied: sqlite-vec in /Users/nitin/anaconda3/envs/elf/lib/python3.11/site-packages (0.1.6)
(elf) ➜ Projects

So I set the env var DYLD_LIBRARY_PATH
export DYLD_LIBRARY_PATH=/Users/nitin/anaconda3/envs/elf/lib/python3.11/site-packages/sqlite_vec
Note: I had to add sqlite_vec at the end to make it work

@nborwankar
Copy link
Author

nborwankar commented Jan 26, 2025

So please consider this closed.
Also for those having similar issues with sqlite-vss, adding the respective path to DYLD_LIBRARY_PATH will fix the similar errors for sqlite-vss also

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant